<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/3 0003
 * Time: 下午 4:00
 */
header("Content-Type:application/json;charset=utf-8");
header("Access-Control-Allow-Origin:*");
$dbHost="localhost";
$connName="root";
$connPwd="";
$dataBase="dogmall";
$connPort="3306";

// 1. 创建链接
$conn=new mysqli($dbHost,$connName,$connPwd,$dataBase,$connPort);
//2.设置链接并链接字符集
mysqli_query($conn,"set names utf8");

